<template>
  <div>
    <a-user-list v-if="querySet" :users="querySet"></a-user-list>
    <a-pagination :page="page" :max="max"></a-pagination>
  </div>
</template>

<script>
  import { querySetMixin } from '../../mixins'

  export default {
    name: 'aUserIndexFollower',
    mixins: [querySetMixin],
    data: function () {
      return {
      }
    },
    props: {
      type: {
        type: String,
        required: true
      },
      id: {
        type: String,
        required: false
      }
    },
    created () {
    },
    computed: {
      api () {
        const id = this.id || this.auth.id
        return `/api/user/${id}/{type}/`
      }
    },
    watch: {
      type () {
        this.query()
      }
    },
    methods: {
    }
  }
</script>

<style lang="stylus">

</style>
